package com.apes.auto.autoparts.model;

import com.apes.framework.jpa.BaseModel;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * Created by lishikun on 2021/5/24 10:20
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = ZptLabelWhitelist.CONST_TABLE_NAME)
public class ZptLabelWhitelist extends BaseModel {
    public static final String CONST_TABLE_NAME = "zpt_label_whitelist";

    @Id
    @Comment("汽车厂牌编码")
    @Column(name = "id", nullable = false, length = 120)
    @ApesGenerator(code = CONST_TABLE_NAME, name = "装配图厂牌白名单表", padding = 8)
    private String id;

    @Comment("汽车厂牌名称")
    @Column(name = "qccpmc")
    private String qccpmc;


}
